<%@ page language="java" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	request.setCharacterEncoding("UTF-8");
 %>
<HTML>
<HEAD>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="${pageContext.request.contextPath}/admin/css/Style.css"
	rel="stylesheet" type="text/css" />
<script language="javascript"
	src="${pageContext.request.contextPath}/admin/js/public.js"></script>
<script type="text/javascript">
	function addOwner() {
		window.location.href = "${pageContext.request.contextPath}/admin/owner/add.jsp";
	}
</script>
</HEAD>
<body>
	<br>
	<form id="Form1" name="Form1"
		action="${pageContext.request.contextPath}/owner/findOwnerByManyConditionServlet"
		method="post">
		<table cellSpacing="1" cellPadding="0" width="100%" align="center"
			bgColor="#f5fafe" border="0">
			<TBODY>
				<tr>
					<td class="ta_01" align="center" bgColor="#afd1f3"><strong>查
							询 条 件</strong>
					</td>
				</tr>
				<tr>
					<td>
						<table cellpadding="0" cellspacing="0" border="0" width="100%">
							<tr>
								<td height="22" align="center" bgColor="#f5fafe" class="ta_01">
									主人编号：</td>
								<td class="ta_01" bgColor="#ffffff"><input type="text"
									name="ownerId" size="15" value="" id="Form1_userName" class="bg" />
								</td>
								<td height="22" align="center" bgColor="#f5fafe" class="ta_01">
									主人姓名：</td>
								<td class="ta_01" bgColor="#ffffff"><input type="text"
									name="ownerName" size="15" value="" id="Form1_userName" class="bg" />
								</td>
							</tr>

							<tr>
								<td height="22" align="center" bgColor="#f5fafe" class="ta_01">
									居住地址：</td>
								<td class="ta_01" bgColor="#ffffff"><input type="text"
									name="ownerAddress" size="15" value="" id="Form1_userName" class="bg" />
								</td>
								<td height="22" align="center" bgColor="#f5fafe" class="ta_01">
									所在城市：</td>
								<td class="ta_01" bgColor="#ffffff"><input type="text"
									name="ownerCity" size="15" value="" id="Form1_userName" class="bg" />
								</td>
							<tr>
								<td height="22" align="center" bgColor="#f5fafe" class="ta_01">
									电话号码：</td>
								<td class="ta_01" bgColor="#ffffff"><input type="text"
									name="ownerPhone" size="15" value="" id="Form1_userName" class="bg" />
								</td>
								<td width="100" height="22" align="center" bgColor="#ffffff"
									class="ta_01"></td>
								<td class="ta_01" bgColor="#ffffff"><font face="宋体"
									color="red"> &nbsp;</font>
								</td>
							</tr>

							<tr>
								<td width="100" height="22" align="center" bgColor="#ffffff"
									class="ta_01"></td>
								<td class="ta_01" bgColor="#ffffff"><font face="宋体"
									color="red"> &nbsp;</font>
								</td>
								<td height="22" align="center" bgColor="#ffffff" class="ta_01">
									</td>
								<td align="right" bgColor="#ffffff" class="ta_01">
									<button type="submit" id="search" name="search"
										value="查询" class="button_view">
										查询</button> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input
									type="reset" name="reset" value="重置"
									class="button_view" />
								</td>
							</tr>
						</table>
					</td>

				</tr>
				<tr>
					<td class="ta_01" align="center" bgColor="#afd1f3"><strong>主人信息列表</strong>
					</TD>
				</tr>
				<tr>
					<td class="ta_01" align="right">
						<button type="button" id="add" name="add" value="&#28155;&#21152;"
							class="button_add" onclick="addOwner()">&#28155;&#21152;
						</button>
					</td>
				</tr>
				<tr>
					<td class="ta_01" align="center" bgColor="#f5fafe">
						<table cellspacing="0" cellpadding="1" rules="all"
							bordercolor="gray" border="1" id="DataGrid1"
							style="BORDER-RIGHT: gray 1px solid; BORDER-TOP: gray 1px solid; BORDER-LEFT: gray 1px solid; WIDTH: 100%; WORD-BREAK: break-all; BORDER-BOTTOM: gray 1px solid; BORDER-COLLAPSE: collapse; BACKGROUND-COLOR: #f5fafe; WORD-WRAP: break-word">
							<tr
								style="FONT-WEIGHT: bold; FONT-SIZE: 12pt; HEIGHT: 25px; BACKGROUND-COLOR: #afd1f3">
								<td align="center" width="24%">主人编号</td>
								<td align="center" width="5%">主人名字</td>
								<td align="center" width="22%">主人地址</td>
								<td align="center" width="9%">主人城市</td>
								<td width="8%" align="center">主人电话</td>
								<td width="8%" align="center">编辑</td>

								<td width="8%" align="center">删除</td>
							</tr>

			<c:forEach items="${owners }" var="o">							
								<tr onmouseover="this.style.backgroundColor = 'white'"
									onmouseout="this.style.backgroundColor = '#F5FAFE';">
									<td style="CURSOR: hand; HEIGHT: 22px" align="center"
										width="23">${o.ownerId }</td>
									<td style="CURSOR: hand; HEIGHT: 22px" align="center"
										width="8%">${o.ownerName }</td>
									<td style="CURSOR: hand; HEIGHT: 22px" align="center"
										width="22%">${o.ownerAddress }</td>
									<td style="CURSOR: hand; HEIGHT: 22px" align="center"
										width="14%">${o.ownerCity }</td>
									<td style="CURSOR: hand; HEIGHT: 22px" width="11%" align="center">${o.ownerPhone }</td>
									<td align="center" style="HEIGHT: 22px" width="5%"><a
										href="${pageContext.request.contextPath}/owner/findOwnerByIdServlet?ownerId=${o.ownerId }">
											<img
											src="${pageContext.request.contextPath}/admin/images/i_edit.gif"
											border="0" style="CURSOR: hand"> </a>
									</td>

									<td align="center" style="HEIGHT: 22px" width="5%"><a
										href="${pageContext.request.contextPath}/owner/deleteOwnerByIdServlet?ownerId=${o.ownerId }">
											<img
											src="${pageContext.request.contextPath}/admin/images/i_del.gif"
											width="16" height="16" border="0" style="CURSOR: hand">
									</a>
									</td>
								</tr>
					</c:forEach>	
						</table>
					</td>
				</tr>
			</TBODY>
		</table>
	</form>
</body>
</HTML>

